<?php


namespace Part19_CombinationMode\Code2;

/**
 * 人力资源部
 */
class HRDepartment extends Company
{
    public function __construct($name, $departmentName)
    {
        parent::__construct($name);
        $this->departmentName = $departmentName;
    }

    /**
     * @inheritDoc
     */
    public function add($c)
    {

    }

    /**
     * @inheritDoc
     */
    public function remove($c)
    {

    }

    /**
     * @inheritDoc
     */
    public function display($depth)
    {
        echo str_repeat('-', $depth) .  "$this->departmentName($this->name)\n";
    }

    public function lineOfDuty()
    {
        echo "$this->departmentName($this->name) {$this->name}的员工招聘培训管理 \n";
    }
}